--Backdrop color
function Icetip:setBackdropColor(unit)
	if IcetipDB.tipBackdropColor then
		--同公会
		if (GetGuildInfo(unit) and GetGuildInfo(unit) == GetGuildInfo("player")) then
			local PlayerGuild = IcetipDB["BackdropColor"]["PlayerGuild"];
			GameTooltip:SetBackdropColor(PlayerGuild.r, PlayerGuild.g , PlayerGuild.b);
		else
			--同阵营
			if (UnitFactionGroup(unit) and UnitFactionGroup(unit) == UnitFactionGroup("player")) then
				local FactionSome = IcetipDB["BackdropColor"]["PlayerFacGroup"];
				GameTooltip:SetBackdropColor(FactionSome.r, FactionSome.g, FactionSome.b);
			--不同阵营
			elseif (UnitFactionGroup(unit) and UnitFactionGroup(unit) ~= UnitFactionGroup("player")) then
				local PlayerNotFacGroup = IcetipDB["BackdropColor"]["PlayerNotFacGroup"];
				GameTooltip:SetBackdropColor(PlayerNotFacGroup.r, PlayerNotFacGroup.g, PlayerNotFacGroup.b);
			else
			--怪物. NPC
				local other = IcetipDB["BackdropColor"]["Other"];
				GameTooltip:SetBackdropColor(other.r, other.g, other.b);
			end
		end
	end
end